﻿using ContaPlanner.Models;
using System.Data.Entity;

namespace ContaPlanner.Data
{
    public class ContaPlannerContext : DbContext
    {
        public ContaPlannerContext() : base("name=ContaPlannerDatabase")
        {
            Database.SetInitializer(new ContaPlannerTestData());
        }

        public DbSet<Cuenta> Cuentas { get; set; } 
        public DbSet<Banco> Bancos { get; set; }
        public DbSet<Categoria> Categorias { get; set; }
        public DbSet<Ubicacion> Ubicaciones { get; set; }
        public DbSet<Recibo> Recibos { get; set; }
        public DbSet<Asiento> Asientos { get; set; }
    }
}
